package com.org.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * mvc路由配置
 */
@Controller
@RequestMapping(value = "sys")
public class SysController {

    /**
     * 首页
     *
     * @return
     */
    @RequestMapping(value = "/index/index.html")
    public String ToSysIndexPage() {
        return "sys/index/index";
    }

    /**
     * 修改密码页面
     *
     * @return
     */
    @RequestMapping(value = "/user/password.html")
    public String ToUserPassword() { return "/sys/user/password"; }

    /**
     * 修改个人信息页面
     *
     * @return
     */
    @RequestMapping(value = "/user/userinfo.html")
    public String ToUserInfo() {
        return "/sys/user/userinfo";
    }
}
